﻿    <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<List<IndyMosaic.Models.Web.NewsItem>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	NewsItems
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>NewsItems</h2>
    <div>
        <%: Html.ActionLink("Add new News Item", "NewNewsItem", null, null)%>
        
    </div>
    <% foreach (var item in Model)
       {%>
        <div>
             <div style="width:696px;height:241px; background: url('<%: Url.Content("~/Content/Images/newsbackground.png")%>'); color: Black;">
                <%= item.Body %>
             </div>
             <%: Html.ActionLink("Edit", "EditNewsItem", "Administration", new { id = item.ID }, null )%>
         </div>
       <%} %>

</asp:Content>
